package com.icebartech.core.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author xiaoxiong
 * @date 2018/6/27 16:01
 */
@Data
@ApiModel(value = "BasePageQuery",description = "基础分类查询")
public class BasePageQuery {
    
    @ApiModelProperty(value = "第几页",example = "第几页")
    @NotNull(message = "pageIndex 不能为空")
    @Min(value = 1,message = "pageIndex 不能小于1")
    private Integer pageIndex;
    
    @ApiModelProperty(value = "每页大小",example = "每页大小")
    @NotNull(message = "pageSize 不能为空")
    @Min(value = 0,message = "pageSize 不能小于0")
    private Integer pageSize;
    
    
    
}
